import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from '../../entities/user.entity';
import { Article } from '../../entities/article.entity';
import { Comment } from '../../entities/comment.entity';
import { Like } from '../../entities/like.entity';
import { CommonService } from './common.service';
import { CommonAdminController } from './common-admin.controller';
import { Log } from 'src/entities/log.entity';

@Module({
  imports: [TypeOrmModule.forFeature([User, Article, Comment, Like, Log])],
  providers: [CommonService],
  controllers: [CommonAdminController],
  exports: [CommonService],
})
export class CommonModule {}
